package com.example.bgxqactivityservice.service;

import com.example.bgxqactivityservice.dao.AuditDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 管理员审核服务
 *
 * @author lizijian
 */
@Service
public class AuditService {

  @Autowired
  private AuditDao auditDao;


  /**
   * 增加用户头像审核（加入之前删除之前的审核）
   *
   * @param userId
   * @param avatar
   */
  public void addAvatarAudit(int userId, String avatar) {
    auditDao.deleteAvatarAudit(userId);
    auditDao.addAvatarAudit(userId, avatar);
  }

}
